package cn.stylefeng.guns.sys.modular.tao.mapper;

import cn.stylefeng.guns.sys.modular.tao.entity.WxUser;
import cn.stylefeng.guns.sys.modular.tao.entity.entityExtend.WxUserExtends;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WxUserMapper {


    void register(@Param("sql") String sql);

    List<WxUser> getUsr(@Param("registerNumber") String registerNumber);

    void addUserByWx(@Param("wxUser") WxUser wxUser);

    WxUser getPasswordById(@Param("id") Object id);

    void updatePassword(@Param("id") Object id, @Param("loginPassWord") Object loginPassWord);

    void updateIdNumber(@Param("id") Object id, @Param("idNumber") Object idNumber,@Param("realName") Object realName);

    WxUser getUserById(@Param("id") Object id);

    void updateMember(@Param("id") Object id, @Param("memberGrade") Object memberGrade);

    void deleteMember(@Param("wxUserInfo") WxUser wxUserInfo);

    WxUserExtends findUserInfo(@Param("id") Object id);

    int update(WxUser userById);

    void upgradeMember(WxUser wxuser);

    List<WxUser> memberGrade(@Param("wxuser") WxUser wxuser);

    void updateaddUseMonye(@Param("openId") Object openid, @Param("userTotal") Object userTotal, @Param("quotaMoney") Object quotaTotal);

    void shouQuan(WxUser wxuser);

    List<WxUser> memberTime(@Param("wxuser") WxUser wxuser);

    List<WxUser> grantMember(@Param("wxuser") WxUser wxuser);

    List<WxUser> isGrant(@Param("wxuser") WxUser wxuser);

    List<WxUser> userMoney(@Param("wxuser") WxUser wxuser);
}
